//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core;

namespace OpenLS.Spreadsheet.Expressions
{
    class FractionExpression : ConstantExpression
    {
        public FractionExpression(Fraction f)
        {
            this.f = f;
        }
        Fraction f;
        public override object Value
        {
            get { return f.ToDouble(); }
        }

        public override string GetText(TextContext context)
        {
            return f.ToString();
        }
    }
}
